package com.hqumath.rndemo.ui.main;

import android.os.Bundle;

import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactActivityDelegate;

/**
 * ****************************************************************
 * 作    者: Created by gyd
 * 创建时间: 2024/11/7 16:08
 * 文件描述:
 * 注意事项:
 * ****************************************************************
 */
public class React1Activity extends ReactActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(null);//react-native-screens 导航器要求
    }

    @Override
    protected String getMainComponentName() {
        return "App";
    }

    @Override
    protected ReactActivityDelegate createReactActivityDelegate() {
        return new DefaultReactActivityDelegate(this, getMainComponentName(), DefaultNewArchitectureEntryPoint.getFabricEnabled());
    }
}
